/* global requirejs: true,chrome: true,browser: true */
if (typeof browser === 'undefined') {
  browser = chrome
}
requirejs.config({
  paths: {
    'swiper': '../node_modules/swiper/dist/js/swiper',
    'dexie': '../node_modules/dexie/dist/dexie',
    'jszip': '../node_modules/jszip/dist/jszip'
  }
})

requirejs(['swiper'], function (Swiper) {
  let swiperH = new Swiper('.swiper-container-h', {
    spaceBetween: 50,
    pagination: {
      el: '.swiper-pagination-h',
      clickable: true
    },
    // initialSlide: 1,
    autoHeight: true,
    allowTouchMove: false
  })
  Object.defineProperty(window, 'swiperH', {value: swiperH})
})

requirejs(['main'], function (making) {
  // console.log('main loaded')
})
